package vn.anhqn.englishsentensetranslator.adapter;

import java.util.List;

import android.content.Context;
import android.widget.BaseAdapter;

public abstract class BaseAppAdapter<T> extends BaseAdapter {
	private List<T> listData;
	private Context context;

	
	public BaseAppAdapter(List<T> list, Context c) {
		this.listData = list;
		this.context = c;

	}

	public List<T> getListData() {
		return listData;
	}

	public void setListData(List<T> listData) {
		this.listData = listData;
	}

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	@Override
	public int getCount() {
		return listData.size();
	}

	@Override
	public T getItem(int position) {
		return listData.get(position);
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

}
